﻿using Modules.SMS;
using PmSoft.Utilities;

namespace ManagementApi.TreeParty.SMS
{
    public class SmsModel: ISmsModel
    {
        public static SmsModel New(MsgType type)
        {
            return new SmsModel(type);
        }

        public SmsModel(MsgType type)
        {
            Type = type;
        }


        public MsgType Type { get; set; }
        public string Message { get; set; }
        public string Code { get; set; }
        public string TemplateCode { get; set; }
        public SafeMap<string> TemplateParams { get; set; } = new SafeMap<string>();
    }

}
